package e_String;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package e_String
 * @date 2024/4/1 下午2:46
 */
public class Test04 {
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = "HELLO";
//        boolean equals(String s)->比较字符串内容
        System.out.println(s1.equals(s2));// false

//        boolean equalsIgnoreCase(String s)->比较字符串内容，忽略大小写
        System.out.println(s1.equalsIgnoreCase(s2));
    }
}
